package com.lzh.service;

import com.github.pagehelper.PageInfo;
import com.lzh.mapper.ExamMapper;
import com.lzh.pojo.Exam;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Reborn
 * @since 2020-06-15
 */
public interface ExamService  {

    public PageInfo<Exam> queryExamPage(Integer pageNum, Integer pageSize);

    public List<Exam> queryExam();

    Exam queryOneExam(int id);

    List<Exam> queryEByids(List<Integer> ids);


    PageInfo<Exam> queryEByCPage(List<Integer> list,Integer pageNum, Integer pageSize);

    public PageInfo<Exam> queryExamBySuPage(String subjects,Integer pageNum, Integer pageSize);

    int insertExam(Exam exam);

    int updateExam(Exam exam);

    int deleteExam(int id);
}
